package com.nowcoder.community.config;/**
 * @description:
 * @Author HP
 * @create 2021/12/12 15:18
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

/**
 * @author HP
 * @create 2021-12-12 15:18
 * @desc 配置第三方类示例
 **/
@Configuration
public class AlphaConfig {

    @Bean
    public SimpleDateFormat simpleDateFormat(){
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }

}
